home *** CD-ROM | disk | FTP | other *** search
- Path: lab.ultra.nyu.edu!kenner
- From: kenner@lab.ultra.nyu.edu (Richard Kenner)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 5 Mar 1996 11:56:24 GMT
- Organization: New York University Ultracomputer Research Lab
- Message-ID: <4hha58$95f@news.nyu.edu>
- References: <4gvrffINNlqo@anvil.ugrad.cs.ubc.ca> <4h4j31$1ga3@watnews1.watson.ibm.com> <4h5cbcINNahr@anvil.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: lab.ultra.nyu.edu
-
- In article <4h5cbcINNahr@anvil.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- >So what law is there that prevents the same thing to be done with Ada?
-
- No law, but you can't have a *validated* Ada compiler that implements
- extensions.
-
- >There is a GNU Ada compiler, too---is _that_ 100% compliant with the
- >standards?
-
- Yes.
-
- > >example, in the description of the -pedantic option in section 2.3 of
- > >"Using GNU CC," Stallman writes:
- > >
- > > A feature to report any failure to conform to ANSI C might be useful
- > > in some instances, but would require considerable additional work and
- > > would be quite different from '-pedantic'. We recommend, rather,
- > > that users take advantage of the extensions of GNU C and disregard
- > > the limitations of other compilers.
-
- Although this is indeed RMS's view, GCC actually does better than this
- statement implies. Over time, more and more additional checks get put
- in. The intent is indeed that -pedantic would give warning about the
- use of any GNU C extensions. At this point, it probably does for the
- vast majority of them (e.g., another such test was added last week),
- but there might still be a few missing. I'm inclined to treat any
- such missing cases as (low-priority) bugs, so please report any you
- find to bug-gcc@prep.ai.mit.edu.
-
- Note that RMS's role in GCC is now just advisory; I've been the
- principle maintainer of it for a number of years now.
-
- >The GNU compiler is not C, and everyone knows that. It just happens to
- >translate C programs. It has severely deviant extensions, such as the ability
- >to define functions within functions, or to have dynamically-sized automatic
- >variables. The above paragraph from ``Using GNU CC'' has ulterior motives. If
- >you write freeware code using gratuitous GCC extensions, its use will be
- >limited to platforms that are supported by GCC.
-
- This is not a very severe limitation, since, at this point, nearly all
- platforms support GCC. Also, many consider such extensions useful.
- At present, writing code for GCC is a very good way of being portable,
- precisely because the exact same compiler runs on so many systems.
-